<!DOCTYPE html>
<html lang="en">
<head>
	<?php $this->load->view('common/head');?>
	<!-- 本页面所有 -->
    <meta name="keywords" content="特殊教育，家庭，特殊儿童，早期干预，AEPS，个别教育计划，评估">
	<meta name="description" content="七维提供的个人及家庭服务旨在遵循儿童成长规律，掌握个体差异，帮助家长真正做到因材施教，促进儿童能力发展；同时推动家长改善教育方式，系统掌握家庭教育的科学理念与实践方式。">
	<title>七维教育—功能教室</title>
	<!-- 导入自定义字体 -->
	<link rel="stylesheet" href="/assets/css/iconfont.css">
    <script type="text/javascript" src="/assets/js/room-list.js"></script>
    <style>
        #bannerTip{
            position: absolute;
            left: 20%;
            right: 20%;
            bottom: 15%;
        }
        .banner-tip-title{
            color: white;
            font-weight: bold;
            font-size:30px;
        }
        .banner-tip-content {
            color: white;;
            font-weight: bold;
            font-size: 20px;
            margin-top: 28px;
            margin-bottom: 32px;
        }
        .content{
            padding-top:140px;
            padding-bottom: 40px;
        }
        .room-item{
            display: flex;
            flex-direction: row;
            width:1200px;
            margin: 0 auto 100px auto;
            align-items: center;
        }
        .room-item-left{
            width: 648px;
            height: 340px;
        }
        .room-item-right{
            margin-left:106px;
            flex:1;
        }
        .room-title{
            color: #454545;
            font-size: 28px;
            font-weight: bold;
            margin-bottom: 34px;
        }
        .room-desc{
            color: #919191;
            font-size:20px;
            line-height: 28px;
            margin-bottom: 47px;
        }
    </style>
</head>
<body>
	<div id="header" class="header">
		<?php $this->load->view('common/header');?>	
	</div>
	<div id="app" class="container">
		<div id="fullpage" class="banner">
            <img :src="bannerImg" alt="">
            <div id="bannerTip">
                <div class="banner-tip-title">
                    {{bannerTipTitle}}
                </div>
                <div class="banner-tip-content">
                    {{bannerTipContent}}
                </div>

                <div class="btn-white" @click="goRoom(0)">了解更多</div>
            </div>
		</div>
		<div class="content">
            <div v-for="(room,index) in roomList" v-if="index>0" class="room-item">
                <img :src="room.img" :alt="room.title" class="room-item-left">
                <div class="room-item-right">
                    <div class="room-title">{{room.title}}</div>
                    <div class="room-desc">{{room.desc}}</div>
                    <div class="btn-black" @click="goRoom(index)">了解更多</div>
                </div>
            </div>
		</div>
	</div>
	<div class="footer">
		<?php $this->load->view('common/footer');?>	
	</div>
	<script>
		$(function () {
            resizeBanner();
            $(window).resize(function() {
                resizeBanner();
            });

		    new Vue({
		        el:'#app',
                data:{
		            bannerImg: "/assets/images/classroom/1头图.jpg",
		            bannerTipTitle:"资源中心",
                    bannerTipContent:"特殊教育资源中心，是以信息化为基础，在一定区域内面向教师、有特殊教育需要的学生、家长提供特殊教育指导和支持服务的活动中心，一般情况下设立在当地特殊教育学校。",
                    roomList: roomList
                },
                methods:{
                    goRoom:function(index){
                        location.href="/classroom/detail?index="+index;
                    }
                },
                mounted:function(){

                }
            })
        })

		function resizeBanner () {
            var hHeader = $("#header").height();
            var hDocument = $(window).height();
            var hFullpage = hDocument - hHeader;
            $("#fullpage").height(hFullpage);
        }
	</script>
</body>
</html>
